package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Configuration
@ComponentScan({"com.itheima.servlet"})
@EnableTransactionManagement

//加载jdbc配置文件
@PropertySource("classpath:jdbc.properties")
//加载mybatis配置类
@Import({JdbcConfig.class, MyBatisConfig.class})
public class SpringConfig {
}
